package com.zbs.simbot.factory.dto;

import com.zbs.simbot.enums.QQListType;
import lombok.*;

import java.util.List;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PluginInfo {
    /**
     * 插件名称
     */
    private String name;

    /**
     * 插件描述
     */
    private String desc;

    /**
     * 白名单
     */
    private List<Long> whitelist;

    /**
     * 黑名单
     */
    private List<Long> blacklist;

    /**
     * QQ名单开启类型 0 不开启 1 白名单 2 黑名单
     */
    private QQListType listType = QQListType.NONE;

    public PluginInfo(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public PluginInfo whitelist(List<Long> whitelist) {
        this.whitelist = whitelist;
        return this;
    }

    public PluginInfo blacklist(List<Long> blacklist) {
        this.blacklist = blacklist;
        return this;
    }

    public PluginInfo listType(QQListType listType) {
        this.listType = listType;
        return this;
    }
}
